import type { PageParams, PageResult } from '@/types/global'
import type { OrderItem } from '@/types/order'
import { http } from '@/utils/http'

export const getOrderList = (data: PageParams & { orderState: number }) => {
  return http<PageResult<OrderItem>>({
    url: '/member/order',
    method: 'GET',
    data,
  })
}
